export default {
  StoreAgent: {
    entity: { name: 'Store', prefix: () => `store/${localStorage.getItem('storeId')}` },
    form: {
      fields: [
        'address',
        { property: 'placeAgent', field_options: { label: '场所分成收款账号' }, required: false, help: '场所分成是指产品提成设置里面的场所分成部分，订单结算之后，如果订单还存在未结算金额的，这些金额不会到这个场所分成账号，会到场所本身的管理账号，这个需要注意，如果是2个账号是同一个的场所，请不要填写本项' },
        { property: 'wineAgent', field_options: { label: '酒代理收款账号' }, required: false },
        { property: 'headerAgent', field_options: { label: '负责人收款账号' }, required: false },
        { property: 'manageAgent', field_options: { label: '管理员收款账号' }, required: false }
      ]
    },
    list: {
      disabled_actions: ['new', 'delete'],
      list_display: [
        { property: 'name', label: '门店名称' },
        'address',
        { property: 'placeAgent', label: '场所分成收款账号' },
        { property: 'wineAgent', label: '酒代理收款账号' },
        { property: 'headerAgent', label: '负责人收款账号' },
        { property: 'manageAgent', label: '管理员收款账号' }
      ]
    }
  }
}

